//
//  OrderState.m
//  代理端
//
//  Created by mac on 16/3/8.
//  Copyright © 2016年 sliver. All rights reserved.
//

#import "OrderState.h"

@implementation OrderState
+(NSString *)orderStatesString:(NSString *)stateString WithStap:(NSString *)stap
{
    
    NSString *str = [NSString stringWithFormat:@"%@",stateString];
    NSString *staing = [NSString stringWithFormat:@"%@",stap];
    
    if ([str isEqualToString:@"11"]) {
        if ([staing isEqualToString:@"4"]) {
            return @"交易失败";
        }else
        {
        return @"待发货";
        }
      }else if ([str isEqualToString:@"12"])
      {
      return @"订单已取消";
      }else if ([str isEqualToString:@"13"])
      {
      return @"待收货";
      }else if ([str isEqualToString:@"14"])
      {
      return @"已收货";
      }else if ([str isEqualToString:@"15"])
      {

          switch ([staing intValue]) {
              case 1:
                  return @"审核中";
                  break;
              case 2:
                  return @"等待总部确认收货";
                  break;
              case 3:
                  return @"驳回";
                  break;
              case 4:
                  return @"退货成功";
                  break;

              default:
                  break;
          }
      }
    return nil;

}
@end
